<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>规则列表</title>
	<link href='Public/hdjs/hdjs.css' rel='stylesheet' media='screen'>
	<link rel="stylesheet" type="text/css" href="Public/Admin/css/mod.base.css"/>
	<script type='text/javascript' src='Public/Admin/js/jquery-1.8.2.min.js'></script>
	<script type='text/javascript' src='Public/hdjs/hdjs.min.js'></script>
	<script type='text/javascript' src='Public/hdjs/lhgcalendar.min.js'></script>
	<script src="Public/Admin/js/mod.base.js" type="text/javascript" charset="utf-8"></script>
	<script src="Public/Admin/js/mod.rule.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
	<form action="{{U('AuthRule/beachdelete')}}" method="post" class='hd-form' name="operationForm">
		<div class="hd-menu-list">
			<ul>
				<li class='active'>
					<a href="javascript:;" >规则列表</a>
				</li>
				<li>
					<a href="{{U('AuthRule/add')}}">添加规则</a>
				</li>
				<li>
					<a href="{{U('AuthRule/updateCache')}}">更新规则缓存</a>
				</li>
			</ul>
		</div>
		<table class="hd-table hd-table-list hd-form">
			<thead>
				<tr>
					<td class="hd-w30">
						<input type="checkbox" />
					</td>
					<td class="hd-w60">排序</td>
					<td class="hd-w30">id</td>
					<td class="hd-w180">规则描述</td>
					<td>规则名称</td>
					<td class="hd-w60">状态</td>
					<!-- <td class="hd-w60">导航</td> -->
					<!-- <td class="hd-w80">条件</td> -->
					<td class="hd-w80">操作</td>
				</tr>
			</thead>
		{{if value="$data"}}
			{{foreach from='$data' value='$v'}}
				<tr {{if value="$v['level'] eq 1"}}class="top"{{endif}}
					>
					<td>
						<input type="checkbox" name="id[{{$v['id']}}]" value="{{$v['id']}}"/>
					</td>
					<td>
						<input type="text" class="hd-w30" value="{{$v['sort']}}" name="sort[{{$v['id']}}]"/>
					</td>
					<td>{{$v['id']}}</td>
					<td>{{$v['title']}}</td>
					<td>
						{{if value="$v['level'] eq 1"}}
							<img src="Public/Admin/images/contract.gif" action="2" class="explodeCategory hand"/>
						{{endif}}
						{{if value="$v['level'] eq 1"}} <strong>{{$v['_name']}}</strong>
						{{elseif value="$v['level'] eq 2"}}
							<b style="color:red;">{{$v['_name']}}</b>
						{{else}}
							{{$v['_name']}}
						{{endif}}
					</td>
					<td>{{$v['status']}}</td>
					<!-- <td>{$v.isnavshow_name}</td> -->
				<!-- 	<td>{$v.condition}</td> -->

					<td>
						<a href="{{U('AuthRule/edit',array('id'=>$v['id']))}}">修改</a>
						<span class="line">|</span>
						<a href="javascript:;" onclick="del_modal('{{U('AuthRule/del',array('id'=>$v['id']))}}')">
									删除
						</a>
					</td>
				</tr>
			{{endforeach}}
	{{else}}
		<tr>
			<td colspan="7">没有找到符合的记录</td>
		</tr>
	{{endif}}
</table>

<input type="button" class="hd-btn hd-btn-sm select_all" value="全选">
<input type="button" class="hd-btn hd-btn-sm operation" value="排序" name="update_sort" >
</form>
<!-- <script type='tex/javascript'> 
var PUBLIC = '__PUBLIC__';
</script> -->
</body>
</html>